package org.jeecg.modules.product.risk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.risk.entity.TbBaseDangerInvestigation;
import org.jeecg.modules.product.risk.entity.TbBaseDangerInvestigationReocrd;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 隐患排查信息
 * @Author: jeecg-boot
 * @Date:   2024-05-07
 * @Version: V1.0
 */
public interface ITbBaseDangerInvestigationService extends IService<TbBaseDangerInvestigation> {

	/**
	 * 添加一对多
	 *
	 * @param tbBaseDangerInvestigation
	 * @param tbBaseDangerInvestigationReocrdList
	 */
	public void saveMain(TbBaseDangerInvestigation tbBaseDangerInvestigation,List<TbBaseDangerInvestigationReocrd> tbBaseDangerInvestigationReocrdList) ;
	
	/**
	 * 修改一对多
	 *
   * @param tbBaseDangerInvestigation
   * @param tbBaseDangerInvestigationReocrdList
	 */
	public void updateMain(TbBaseDangerInvestigation tbBaseDangerInvestigation,List<TbBaseDangerInvestigationReocrd> tbBaseDangerInvestigationReocrdList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	List<Map> countForThisYearByMonth();
}
